package com.greydawn.CompositePattern;

/**
 * @Author: zhongwr
 * @Create: 2021/12/19 16:59
 * @Version 1.0
 * @Description:
 */
public abstract class Component {

    protected String name;

    public String getName() {
        return name;
    }

    public abstract void add(Component component);

    public abstract void remove(Component component);

    public abstract void display();
}
